package org.cos.verifier.utility;

/*
 * Created on Apr 21, 2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */

/**
 * @author SMarkowitz1271
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class Activity extends Thread {
	protected int current;
	protected int target;
	public Activity(int i) {
		current = 0;
		target = i;
	}
	public int getTarget() {return target;}
	public int getCurrent() {return current;}
	public void run() {
		while(current < target && !interrupted()) {
			try {sleep(10);}
			catch (InterruptedException e) {
				System.out.println("Activity error");
				return;
				}
			current++;
		}
	}

}
